package com.wch.SpringBootTestDemo.webservice.service.impl;

import java.util.Date;

import javax.jws.WebParam;
import javax.jws.WebService;

import com.wch.SpringBootTestDemo.webservice.service.DemoWebService;

@WebService(serviceName="DemoWebService",   //与接口中指定的name一致
			targetNamespace="http://service.webservice.SpringBootTestDemo.wch.com",    //命名空间，与接口中的命名空间一致,一般是接口的包名倒
			endpointInterface="com.wch.SpringBootTestDemo.webservice.service.DemoWebService"   //接口地址
		)

public class DemoWebServiceImpl implements DemoWebService {

	@Override
	public String sayHello(String user) {
		// TODO Auto-generated method stub
		
		return "user="+user+"-||-现在的时间是：("+new Date()+")";
	}

	@Override
	public String sayGoodbye(String user) {
		return user+", I MISS YOU !";
	}

	@Override
	public String GetCardDetaiInfo(@WebParam(name = "xmlStr")String xmlStr) {
		// TODO Auto-generated method stub
		
		StringBuffer buf=new StringBuffer();
		buf.append("<InterfaceMsg>");
		buf.append("<queryInfoList>");
		buf.append("这个是测试");
		buf.append("</queryInfoList>");
		buf.append("</InterfaceMsg>");
		return buf.toString();
	}
	
	

}
